The following example shows the multistateButton object:
<multistateButton name="MultistatePushButton1" height="39" width="112" left="7" top="213" visible="true" wallpaper="false" isReferenceObject="false" audio="true" backStyle="solid" borderStyle="raisedInset" borderUsesBackColor="false" borderWidth="4" description="" highlightColor="lime" horizontalMargin="0" verticalMargin="0" shape="rectangle" touch="true" nextStateBasedOn="currentState" autoRepeatDelay="400" autoRepeatRate="0" currentStateId="0" setLastStateId="2" captionOnBorder="False" keyAssignment="F9">
<states>
<state stateId="Error" backColor="navy" borderColor="navy" patternColor="white" patternStyle="none" blink="false">
<caption fontFamily="Arial" fontSize="10" bold="false" italic="false" underline="false" strikethrough="false" caption="Error" color="white" backColor="navy" backStyle="transparent" alignment="middleCenter" wordWrap="true" blink="false" />
<imageSettings imageName="" alignment="middleCenter" backStyle="transparent" color="white" backColor="navy" scaled="false" blink="false" />
</state>
<state stateId="0" value="0" backColor="#8C0000" borderColor="#F00000" patternColor="white" patternStyle="none" blink="false">
<caption fontFamily="Arial" fontSize="10" bold="false" italic="false" underline="false" strikethrough="false" caption="Multistate 0" color="black" backColor="#FFFF80" backStyle="transparent" alignment="middleCenter" wordWrap="true" blink="false" />
<imageSettings imageName="" alignment="middleCenter" backStyle="transparent" color="white" backColor="navy" scaled="false" blink="false" />
</state>
<state stateId="1" value="1" backColor="navy" borderColor="navy" patternColor="white" patternStyle="none" blink="false">
<caption fontFamily="Arial" fontSize="10" bold="false" italic="false" underline="false" strikethrough="false" caption="" color="white" backColor="navy" backStyle="transparent" alignment="middleCenter" wordWrap="true" blink="false" />
<imageSettings imageName="" alignment="middleCenter" backStyle="transparent" color="white" backColor="navy" scaled="false" blink="false" />
</state>
</states>
<animations>
<animateVisibility expression="TagS2" expressionTrueState="visible" />
</animations>
<connections>
<connection name="Value" expression="TagS2" />
<connection name="Indicator" expression="TestS2" />
</connections>
</multistateButton>